import { createStore, createLogger } from "vuex";
import { RootStateType } from "./interface";
import test from "./modules/test";

const debug = import.meta.env.DEV;
const store = createStore<RootStateType>({
	strict: debug,
	modules: {
		testModule: test,
	},
	plugins: debug ? [createLogger()] : [],
});
export default store;
